import Vue from 'vue'
import Router from 'vue-router'
import friend from '@/components/friend'
import reg from '../components/reg.vue'
import HelloWorld from '../components/HelloWorld.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'friend',
      component: friend
    },
    {
      path: '/friend',
      name: 'friend',
      component: friend
    },{
      path: "/reg",
      name: 'reg',
      component: reg
    },
    {
      path: "/hello",
      name: 'HelloWorld',
      component: HelloWorld
    }
  ]
})
